package com.smart.sso.server.model;

import java.util.Date;
import com.alibaba.fastjson.annotation.JSONField;
import com.smart.mvc.model.PersistentObject;

/**
 * 用户登录日期时间限制
 * 
 * @author YM
 */
public class LoginDatetimeLimit extends PersistentObject {

	/**
	 * 
	 */
	private static final long serialVersionUID = 4317850480746160649L;
	
	/** 允许的起始登录日期时间 */
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	private Date startDatetime;
	/** 允许的终止登录日期时间 */
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	private Date endDatetime;
	/** 是否为一天内的时间段 */
	private boolean isTime;
	/** 用户ID */
	private Integer userId;
	
	public Date getStartDatetime() {
		return startDatetime;
	}

	public void setStartDatetime(Date startDatetime) {
		this.startDatetime = startDatetime;
	}
	
	public Date getEndDatetime() {
		return endDatetime;
	}

	public void setEndDatetime(Date endDatetime) {
		this.endDatetime = endDatetime;
	}
	
	public boolean getIsTime() {
		return this.isTime;
	}

	public void setIsTime(boolean isTime) {
		this.isTime = isTime;
	}
	
	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}
}
